package com.xbl.mail.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.xbl.mail.config.database.ReadOnlyConnection;
import com.xbl.mail.entity.MstDict;
import com.xbl.mail.mapper.MstDictMapper;

@Service("myService")
public class MyService {

	@Autowired
	private MstDictMapper mstDictMapper;

	@ReadOnlyConnection
	public void add() {
		System.out.println("UserService add...");
	}


	@ReadOnlyConnection
	public List<MstDict> selectByStatus(String status) {
		return mstDictMapper.selectByStatus(status);
	}
}
